import request from '@/utils/request'

// 查询叙词关系维护列表
export function listThesauriWordRelation(query) {
  return request({
    url: '/system/thesauriWordRelation/list',
    method: 'get',
    params: query
  })
}

// 查询叙词关系维护详细
export function getThesauriWordRelation(id) {
  return request({
    url: '/system/thesauriWordRelation/' + id,
    method: 'get'
  })
}

// 新增叙词关系维护
export function addThesauriWordRelation(data) {
  return request({
    url: '/system/thesauriWordRelation',
    method: 'post',
    data: data
  })
}

// 修改叙词关系维护
export function updateThesauriWordRelation(data) {
  return request({
    url: '/system/thesauriWordRelation',
    method: 'put',
    data: data
  })
}

// 删除叙词关系维护
export function delThesauriWordRelation(id) {
  return request({
    url: '/system/thesauriWordRelation/' + id,
    method: 'delete'
  })
}

// 导出叙词关系维护
export function exportThesauriWordRelation(query) {
  return request({
    url: '/system/thesauriWordRelation/export',
    method: 'get',
    params: query
  })
}